package com.justgame.project.service.api.entity;

import com.justgame.project.cloud.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;

/**
 * 游戏信息表
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JustGameInfo extends BaseEntity {

    @NotBlank
    @Length(max = 100)
    private String cnName;

    @NotBlank
    @Length(max = 100)
    private String enName;

    @URL
    @Length(max = 100)
    private String images;

    //    @NotBlank(message = "描述不能为空")
    private String desc;

    @NotBlank
    private String companyId;


    @NotBlank
    @URL(message = "格式必须为网址形式哦！")
    private String website;

    private Integer cost;

    private Integer isVip;

}
